package com.wy.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author 王昭贵
 * @since 2023-03-22
 */
@Data
@ApiModel(value = "Diagnosis对象", description = "")
public class Diagnosis implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("预约id")
    private Integer reserveId;

    @ApiModelProperty("宠物id")
    private Integer petId;

    @TableField(exist = false)
    private String petName;

    @ApiModelProperty("用户id")
    private Integer customerId;
    @TableField(exist = false)
    private String customerName;

    @ApiModelProperty("病情分析")
    private String diseaseAnalysis;

    @ApiModelProperty("治疗方案")
    private String treatmentPlan;

    @ApiModelProperty("医嘱")
    private String doctorTell;


    @ApiModelProperty("医生id")
    private int userId;

    @ApiModelProperty("就诊状态")
    private int status;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private int payStatus;
    @TableField(exist = false)
    private String image;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
